package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Address;
import com.itheima.pojo.CheckItem;
import com.itheima.pojo.Order;

import java.util.List;

public interface AddressDao {
    Page<Address> selectByCondition(String queryString);

    void add(Address address);

    Address findById(Integer id);

    void edit(Address address);

    void delete(Integer id);

    List<Order> findOrderByAddressId(Integer id);

    Address findByName(String name);

    List<Address> findAll();
}
